#include<stdio.h>

void del_space(char *str)
{
	char *p;
	p = str;
	while(*p!='\0')
	{
		if(*p==' ')
			p++;
		else
		{
			*str = *p;
			str++;
			p++;
		}
	}
	*str = '\0';
}

int main(int argc, const char *argv[])
{
	char str[] = "  123  4 5 6";
	printf("%s\n",str);
	del_space(str);
	printf("%s\n",str);
	return 0;
}
